package com.java2;

import java.io.DataOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;

public class DataOutPutStreamTest {

	public static void main(String[] args) throws IOException {
		String path = "C:" + File.separator;
		String fileName = "zzz.bin";
		DataOutputStream out = new DataOutputStream(new FileOutputStream(
				new File(path, fileName), false));
		out.writeInt(11);
		// out.writeInt(12);
		out.flush();
		out.close();
		FileInputStream in = new FileInputStream(new File(path, fileName));
		int tt;

		byte[] b = new byte[in.available()];
		in.read(b);
		while ((tt = in.read()) != -1) {
			System.out.println(tt);

		}
		System.out.println(Long.MAX_VALUE);
		String s="9223372036854775807";
		System.out.println(s.length());

	}

}
